/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cersoft.xmascharity;

import com.cersoft.xmascharity.ejb.PaymentFacade;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Marcin
 */
@ManagedBean
@RequestScoped
public class PaymentManager {
    
    @EJB
    private PaymentFacade paymentFacade;
    
    
    
    private long sum;

    /** Creates a new instance of PaymentManager */
    public PaymentManager() {
    }

    public long getSum() {
        return paymentFacade.getSum().longValue();
    }
    
    
}
